*about convolution filters

blurs, edge detections, sharpens, waves, you name it... they're all convolution filters

 

for every pixel on the screen, the filter does the following calculations:

it looks at each pixels surrounding it (in our case 49 in a 7x7 grid) and multiplies their value by the corresponding number in the grid of values (called the kernel) on the config pannel. these values should be integers (positive or negative). it then takes the sum of all these products, adds the bias (again an integer) and divides by the scale (also an integer). the auto-scale button will set the scale to the sum of all the values in the kernel plus the bias. this is useful for setting the scales of blurs.

as an example, consider a kernel zero abart from the following central squares:
0 1 0
1 4 1
0 1 0
with bias 0 and scale 8. this will do (4*current pixel + pixel directly above + pixel directly below + pixel to the right + pixel to the left) / 8. as it happens this is a very fast blur. to really see its effects you should turn clear every frame off.

 

 

< previous :: contents :: next >